import os
import numpy as np

class Parameter:
    FLIP_SCALE=0.5
    NUM_CLASSES=15

    BATCH_SIZE=16
    LEARNING_RATE = 0.00001
    NUM_EPOCHS = 100
    MOMENTUM = 0.9

    N_SAVE_INTERVAL=10

def create_symlink(source, link_name):
    source=os.path.abspath(source)
    # 检查软链接是否存在
    if os.path.islink(link_name):
        # 删除已存在的软链接
        os.remove(link_name)
    # 创建软链接
    os.symlink(source, link_name)

def load_np_data(data_path:str):
    data = np.load(data_path)
    loaded_features = data["features"]
    loaded_labels = data["labels"]
    return loaded_features,loaded_labels

if __name__=="__main__":
    load_np_data("test.npz")
